package com.youlai.quarkus.system.common.redis;

/**
 * Redis service
 *
 * @author csp 2023-10-29
 */
public interface IRedisService {

    void set(String key, Object val, long timeout);

    void set(String key, Object val);

    <T> T get(String key, Class<T> clazz);

    boolean tryLock(String key, long exp);

}
